package com.kgc.scd.bean;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;


/**
 * order
 * @author
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder

/**
 * order
 *
 * @author
 */
@Data
@TableName(value = "`order`")
public class Order implements Serializable {

    private static final long serialVersionUID = 8769297964601336551L;
    /**
     * 订单号
     */
    @TableId
    @ApiModelProperty("订单号")
    private String orderId;

    /**
     * 订单状态(0:未支付 1:未发货 2:已发货 3：已签收)
     */
    @ApiModelProperty("订单状态(0:未支付 1:未发货 2:已发货 3：已签收)")
    private Integer orderState;

    /**
     * 物流单号
     */
    @ApiModelProperty("物流单号")
    private String orderExpressid;


    /**
     * 商品总价
     */
    //private double orderTotalprice;

    @ApiModelProperty("订单用户id")
    private String orderUid;
    /**
     * 订单价格
     */
    @ApiModelProperty("订单价格")
    private double orderPrice;
    /**
     * 订单地址id
     */
    @ApiModelProperty("订单地址id")
    private String orderAddrid;
    /**
     * 订单优惠券
     */
    @ApiModelProperty("订单优惠券")
    private Integer orderCouid;
    /**
     * 订单时间
     */
    @ApiModelProperty("订单时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date orderTime;

}